package IC.lir.instructions;
import IC.lir.operands.Operand;
import IC.lir.*;

/**
 * Return param
 * 
 * Exits a function, returning "param"
 *
 */
public class ReturnInstr extends Instruction {
	private Operand		value;

	/**
	 * @param value the return value
	 */
	public ReturnInstr(Operand value) {
		this.value = value;
	}

	/**
	 * @return the return value
	 */
	public Operand getValue() {
		return value;
	}

	@Override
	public <D,U> U accept(Visitor<D,U> v, D context) {
		return v.visit(this,context);
	}
}
